package cn.charlotte.pit.commands.admin;


import cn.charlotte.pit.addon.impl.GachaPool;
import cn.charlotte.pit.commands.PitCommands;
import cn.charlotte.pit.data.PlayerProfile;
import co.aikar.commands.BaseCommand;
import co.aikar.commands.annotation.*;
import org.bukkit.entity.Player;


@CommandAlias("check")
@CommandPermission("pit.admin")
public class Check extends BaseCommand {
    private final PitCommands pitCommands;

    public Check(PitCommands pitCommands) {
        this.pitCommands = pitCommands;
    }

    @Subcommand("maxhealth")
    @CommandCompletion("@players")
    public void checkMaxHealth(Player player, Player tester) {
        PlayerProfile profile = PlayerProfile.getPlayerProfileByUuid(tester.getUniqueId());
        player.sendMessage("额外血量: " + profile.getExtraMaxHealth());
    }


}